<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateActivePhotoTables extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('active_photo', function (Blueprint $table) {
            $table->increments('id');
            $table -> string('title')->nullable()->comment('标题');
            $table -> string('number')->nullable()->comment('编号');
            $table -> string('desc')->nullable()->comment('描述');
            $table -> string('author')->nullable()->comment('作者');
            $table -> integer('status')->default(0)->comment('是否兑奖');
            $table -> softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
